package bsk;

import java.io.IOException;

import bsk.gui.MainWindow;


public class Main {


	public static void main(String[] args) throws IOException, ClassNotFoundException {
		
		//(new Connect("servers.jks", "098765", null, null, false)).run();		
		
		// zasada dzialania kart i przyklad tworzenia
//        //-----------------------------------------------
//        String[] listaKandydatow={"Roman Kowalski","Igor Podolak"};
//        Card []dziesiecKart=CardNS.genCards(listaKandydatow, 10);
//        
//        int counter=0;
//        for (Card c:dziesiecKart)
//        {
//            System.out.println("Karta nr "+(++counter)+":");
//            for (Card.Vote v:c.votes)
//            System.out.println(v.candidate + "  |  "+ v.serial );
//            System.out.println("\n");
//        }
//        //-----------------------------------------------
//        
		
	    String plaf= "com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
        try
        {
                javax.swing.UIManager.setLookAndFeel(plaf);
        }
        catch(Exception e){}
        
    	java.awt.EventQueue.invokeLater(new Runnable() {
			public void run() {
				new MainWindow().setVisible(true);
			}
		});
	}

}
